-- GENERATED SPELL FOR [Rotting Behemoth] --


function spell0_1812(pUnit, Event) --@Plague Cloud,n/a--
pUnit:FullCastSpellOnTarget(3256,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1812', 2000, 1)
end

function Sorts_1812(pUnit, Event)
local choix_sorts_1812 = math.random(0, 0)
if choix_sorts_1812 == 0 then
pUnit:RegisterEvent('spell0_1812', 1, 1)
end
end

function mob1812_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1812', math.random(1500, 3000), 1)
end

function mob1812_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1812_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1812_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1812, 1, 'mob1812_Action')
RegisterUnitEvent(1812, 2, 'mob1812_Leave')
RegisterUnitEvent(1812, 3, 'mob1812_Kill')
RegisterUnitEvent(1812, 4, 'mob1812_Die')
